<?php


namespace App\Domain;

use App\Model\Goods as GoodsModel;

class Goods
{
    public function getGoodsInfo()
    {
        $model = new GoodsModel();
        return $model->getGoodsInfo();
    }
    public  function getGoodInfo($good_id){
        $model=new GoodsModel();
        return $model ->getGoodInfo($good_id);
    }
    public function getGoodInfoByTypeName($good_type){
        $model=new GoodsModel();
        return $model->getGoodInfoByTypeName($good_type);
    }
    public function insertGoodsInfo($good_name,$good_price,$good_typeName,$good_star,$good_pubdate,$good_picture,$good_intro){
        $model=new GoodsModel();
        return $model->insertGoodsInfo($good_name,$good_price,$good_typeName,$good_star,$good_pubdate,$good_picture,$good_intro);
    }
    public function updateGoodsInfo($good_id,$good_name,$good_price,$good_parentName,$good_pubdate,$good_picture,$good_intro){
        $model=new GoodsModel();
        return $model->updateGoodsInfo($good_id,$good_name,$good_price,$good_parentName,$good_pubdate,$good_picture,$good_intro);
    }
    public function deleteGoodsInfo($good_id){
        $model=new GoodsModel();
        return $model->deleteGoodsInfo($good_id);
    }
    public function likeQueryByGoodsName($like_goodName){
        $model=new GoodsModel();
        return $model->likeQueryByGoodsName($like_goodName);
    }
    public function likeQueryByGoodsDate($like_goodDate){
        $model=new GoodsModel();
        return $model->likeQueryByGoodsDate($like_goodDate);
    }
}